package com.itheima.dao;

import com.github.pagehelper.Page;

import com.itheima.pojo.Menu;
import com.itheima.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface UserDao {
    List<User> findUserByHealthManager();

    User findByUsername(String username);

    void editPwd(@Param("newpwd") String newpwd, @Param("username") String username);

    Page<User> findByCondition(String queryString);

    void add(User user);

    void setUserAndRole(Map map);

    List<Integer> findRoleIdsByUserId(Integer userId);

    User findById(Integer userId);

    void edit(User user);

    void deleteAssoication(Integer id);

    void deleteById(Integer id);

    List<Menu> findAllMenu(String username);

    User findByTelephone(String telephone);

    void changeStatus(@Param("id") Integer id, @Param("station") String station);
}
